package com.dmap.admin.po;

import java.io.Serializable;

public class AdminPermissions implements Serializable {
    /**
     * 主键id
     * 表字段 : admin_permissions.id
     */
    private Long id;

    /**
     * 权限名称
     * 表字段 : admin_permissions.name
     */
    private String name;

    /**
     * 权限描述
     * 表字段 : admin_permissions.description
     */
    private String description;

    /**
     * 上级权限id
     * 表字段 : admin_permissions.parent_id
     */
    private Long parentId;

    /**
     * 模块URL地址
     * 表字段 : admin_permissions.url
     */
    private String url;

    /**
     * 标记是否有子菜单项 0-无子菜单，1-有子菜单
     * 表字段 : admin_permissions.has_child
     */
    private Integer hasChild;

    /**
     * 记录创建时间戳，单位秒
     * 表字段 : admin_permissions.createTime
     */
    private Long createtime;

    /**
     * 记录修改时间戳，单位秒
     * 表字段 : admin_permissions.modify_time
     */
    private Long modifyTime;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database table admin_permissions
     *
     * @mbggenerated
     */
    private static final long serialVersionUID = 1L;

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table admin_permissions
     *
     * @mbggenerated
     */
    public AdminPermissions(Long id, String name, String description, Long parentId, String url, Integer hasChild, Long createtime, Long modifyTime) {
        this.id = id;
        this.name = name;
        this.description = description;
        this.parentId = parentId;
        this.url = url;
        this.hasChild = hasChild;
        this.createtime = createtime;
        this.modifyTime = modifyTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table admin_permissions
     *
     * @mbggenerated
     */
    public AdminPermissions() {
        super();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column admin_permissions.id
     *
     * @return the value of admin_permissions.id
     *
     * @mbggenerated
     */
    public Long getId() {
        return id;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column admin_permissions.id
     *
     * @param id the value for admin_permissions.id
     *
     * @mbggenerated
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column admin_permissions.name
     *
     * @return the value of admin_permissions.name
     *
     * @mbggenerated
     */
    public String getName() {
        return name;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column admin_permissions.name
     *
     * @param name the value for admin_permissions.name
     *
     * @mbggenerated
     */
    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column admin_permissions.description
     *
     * @return the value of admin_permissions.description
     *
     * @mbggenerated
     */
    public String getDescription() {
        return description;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column admin_permissions.description
     *
     * @param description the value for admin_permissions.description
     *
     * @mbggenerated
     */
    public void setDescription(String description) {
        this.description = description == null ? null : description.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column admin_permissions.parent_id
     *
     * @return the value of admin_permissions.parent_id
     *
     * @mbggenerated
     */
    public Long getParentId() {
        return parentId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column admin_permissions.parent_id
     *
     * @param parentId the value for admin_permissions.parent_id
     *
     * @mbggenerated
     */
    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column admin_permissions.url
     *
     * @return the value of admin_permissions.url
     *
     * @mbggenerated
     */
    public String getUrl() {
        return url;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column admin_permissions.url
     *
     * @param url the value for admin_permissions.url
     *
     * @mbggenerated
     */
    public void setUrl(String url) {
        this.url = url == null ? null : url.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column admin_permissions.has_child
     *
     * @return the value of admin_permissions.has_child
     *
     * @mbggenerated
     */
    public Integer getHasChild() {
        return hasChild;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column admin_permissions.has_child
     *
     * @param hasChild the value for admin_permissions.has_child
     *
     * @mbggenerated
     */
    public void setHasChild(Integer hasChild) {
        this.hasChild = hasChild;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column admin_permissions.createTime
     *
     * @return the value of admin_permissions.createTime
     *
     * @mbggenerated
     */
    public Long getCreatetime() {
        return createtime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column admin_permissions.createTime
     *
     * @param createtime the value for admin_permissions.createTime
     *
     * @mbggenerated
     */
    public void setCreatetime(Long createtime) {
        this.createtime = createtime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column admin_permissions.modify_time
     *
     * @return the value of admin_permissions.modify_time
     *
     * @mbggenerated
     */
    public Long getModifyTime() {
        return modifyTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column admin_permissions.modify_time
     *
     * @param modifyTime the value for admin_permissions.modify_time
     *
     * @mbggenerated
     */
    public void setModifyTime(Long modifyTime) {
        this.modifyTime = modifyTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table admin_permissions
     *
     * @mbggenerated
     */
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", name=").append(name);
        sb.append(", description=").append(description);
        sb.append(", parentId=").append(parentId);
        sb.append(", url=").append(url);
        sb.append(", hasChild=").append(hasChild);
        sb.append(", createtime=").append(createtime);
        sb.append(", modifyTime=").append(modifyTime);
        sb.append("]");
        return sb.toString();
    }
}